const fs = require("fs");
const path = require("path");
//默认情况下,相对目录和node程序的启动目录有关系
// const PRIVATE_KEY = fs.readFileSync("./src/config/keys/private.key");
// const PUBLIC_KEY = fs.readFileSync("./keys/public.key");

//使用path解析
const PRIVATE_KEY = fs.readFileSync(
  path.resolve(__dirname, "./keys/private.key")
);
const PUBLIC_KEY = fs.readFileSync(
  path.resolve(__dirname, "./keys/public.key")
);
module.exports = {
  PRIVATE_KEY,
  PUBLIC_KEY,
};
